# Contributor: Prokop Randáček <prokop@rdck.dev>
# Maintainer: Prokop Randáček <prokop@rdck.dev>
pkgname=duc
pkgver=1.4.5
pkgrel=0
pkgdesc="Tool for inspecting disk usage"
url="http://duc.zevv.nl/"
arch="all"
license="LGPL-3.0-or-later"
makedepends="pango-dev glfw-dev kyotocabinet-dev ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/zevv/duc/releases/download/$pkgver/duc-$pkgver.tar.gz"
options="!check" # tests are not included in the distributed tar

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-db-backend=kyotocabinet \
		--enable-opengl \
		--disable-x11
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
b6d48222ed2821d3d1317102f867f71f9060a093ba11ba48d9f0d9dc743c5b361442cb605aec6e91dd6588ae4b51897b4ed5da96ba33019e8a501a262af12371  duc-1.4.5.tar.gz
"
